package cn.wusifx.zabbix.request.builder.screen;

import cn.wusifx.zabbix.request.BaseRequest;
import cn.wusifx.zabbix.request.builder.UpdateRequestBuilder;

import java.util.Map;

/**
 * https://www.zabbix.com/documentation/4.0/manual/api/reference/screen/update
 */
public class ScreenUpdateRequestBuilder extends UpdateRequestBuilder {
    private String screenId;
    public ScreenUpdateRequestBuilder(String auth) {
        super("screen.update", auth);
    }

    public ScreenUpdateRequestBuilder(Long id, String auth) {
        super("screen.update", id, auth);
    }

    public String getScreenId() {
        return screenId;
    }

    public ScreenUpdateRequestBuilder setScreenId(String screenId) {
        this.screenId = screenId;
        return this;
    }

    @Override
    public BaseRequest<Map<String, Object>> builder() {
        baseRequest.getParams().put("screenid",screenId);
        return baseRequest;
    }
}
